package site.zhouinfo.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * 服务器启动时加载
 *
 * @author zhou
 * @create 2017-06-22 17:09
 * @email zhouinfo@qq.com
 * @blog blog.zhouinfo.site
 */
public class InitServlet extends HttpServlet {

    @Override
    public void init() throws ServletException {
        super.init();
        System.out.println("服务器启动时被调用");
    }

    @Override
    public void destroy() {
        super.destroy();
        System.out.println("服务器关闭时被调用");
    }
}
